package cc.lucien.annotaion;

import sun.management.snmp.jvminstr.JvmRTInputArgsEntryImpl;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 测试元注解
 */
public class Test01 {

    @MyAnnotation
    public void test01(){
        System.out.println("test01");
    }
}



//定义一个注解
@Target(value = {ElementType.METHOD,ElementType.FIELD})
@Retention(value = RetentionPolicy.RUNTIME)
@interface MyAnnotation {

}